package com.sinping.qh.service.admin;

import com.sinping.qh.api.support.FrontPage;
import com.sinping.qh.api.support.ResDto;
import com.sinping.qh.dto.admin.record.*;

import javax.servlet.http.HttpServletRequest;

/**
 * 检查记录接口
 *
 * @author Tiansx
 * @create 2018-06-02 13:30
 **/
public interface ICheckRecordsService {
    /**
     * 检查记录提交审核
     */
    ResDto userSubmitRecordsAudit(HttpServletRequest request, ApiCheckRecordDto apiCheckRecordDto);

    /**
     * 检查记录中亮点删除
     */
    ResDto deleteHightLight(String id);
    /**
     * 检查记录中亮点修改
     */
    ResDto updateHightLight(HttpServletRequest request, HighLightRecordDto highLightRecordDto);


    /**
     * 检查记录中隐患删除
     */
    ResDto deleteHiddenDanger(String id);
    /**
     * 检查记录中隐患修改
     */
    ResDto updateHiddenDanger(HttpServletRequest request, HiddenDangerInspectItemDto hiddendangerRecordDto);
    /**
     * 获取隐患记录检查项列表
     */
     ResDto getCheckInspectItemList(HttpServletRequest request,ApiInspectItemTreeDto apiInspectItemTreeDto);
    /**
     * 获取检查审核记录列表
     */
    ResDto getWaitedAuditRecordList(HttpServletRequest request,FrontPage page);
    /**
     * 获取检查审核记录详情
     */
    ResDto getWaitedAuditRecordDetail(String id);
    /**
     * 记录审核通过
     */
    ResDto auditPass(HttpServletRequest request,ApiCheckRecordDto apiCheckRecordDto);

    /**
     *获取已审核检查记录
     */
    ResDto getAlreadyAuditRecordList(HttpServletRequest request,FrontPage page);

    /**
     * 删除隐患/亮点记录的图片
     */
    ResDto deleteRecordImage(ApiRecordImageDto apiRecordImageDto);
    /**
     * 生成检查报告
     */
    ResDto generateCheckReport(ApiCheckRecordReportDto apiCheckRecordReportDto);

    /**
     * 记录打回，待审核改为检查中
     */
    ResDto callback(HttpServletRequest request,ApiCheckRecordDto apiCheckRecordDto);
}
